package cn.electronic.sale.service;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.electronic.sale.pojo.GoodsCustom;
import cn.electronic.sale.pojo.Orders;



public interface OrdersService {
	
	
	
	/**
	 * 商品录入订单
	 * 
	 * @param Orders
	 *            封装订单信息的实体
	 * 
	 */
	public void insertOrders(Orders order) throws Exception;
	
	/**
	 * 根据客户Id查找订单号
	 * 
	 * @param customerId
	 *            顾客Id
	 * 
	 */
	public List<Orders> selectIndentByCustom(Integer customerId) throws Exception;
	
	/**
	 * 根据客户Id查找订单商品信息
	 * 
	 * @param customerId
	 *            顾客Id
	 * 
	 */
	public List<GoodsCustom> selectAllGoodsInfoByCustomerId(Integer customerId) throws Exception;
	
	/**
	 * 根据客户Id和商品Id删除订单商品信息
	 * 
	 * @param customerId顾客Id
	 *        goodsId   商品Id    
	 * 
	 */
	public int deleteByGoodsAndCustomerId(Integer goodsId,
			 Integer customerId) throws Exception; 
}
